<template>
    <div>
        <input type="text" @keyup.enter="fn1">
        <input type="text" @keyup="fn">
    </div>
</template>
<script>
export default{
    name:'text-five',
    methods:{
        fn(e){
            console.log(`按下了${e.key}`);
        },
        fn1(e){
            // console.log(e);
            console.log(`按下了${e.key}`);
        }
    }
}
</script>